try:
    do_smth()
<warning descr="Python versions 3.5, 3.6, 3.7, 3.8, 3.9, 3.10 do not support this syntax">except ImportError, ImportWarning:
    do()</warning>